package com.linxianqin.aop.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述：
 *
 * @author lxq
 * @version 1.00
 * @Date 2020/12/11
 */
@Slf4j
@RestController
public class TestAopClassController {
    @GetMapping("/first")
    public void first() {
        log.info("first");
    }

    @GetMapping("/doError")
    public Object error() {
        log.info("doError");
        return 1 / 0;
    }
}
